package edu.cuit.avatar.decorator;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/12 14:49
 */
public class DecorateMessageBoard implements MessageBoard{
    private MessageBoard target;

    public DecorateMessageBoard(MessageBoard target) {
        this.target = target;
    }

    @Override
    public String message() {
        String  message = target.message();
        String result = "---------------------------------------------------------------\r\n"
                        + "                 " + message +
                        "\r\n---------------------------------------------------------------\r\n";
        return result;
    }
}
